a nice math olympiad question